﻿@model S4Store.Models.FinancialReport.YYEModel
@{
    ViewBag.Title = "YYE";
    Layout = null;
    
    S4Store.Models.Chart.Column ChartModel = new S4Store.Models.Chart.Column();
    ChartModel.Name = "销售各业务营业额占比对比";
    ChartModel.YAxis = "比率(%)";
    //ChartModel.Width = 500;
    //ChartModel.Height = 300;
    ChartModel.XAxis.Add("商品车销售额占比");
    ChartModel.XAxis.Add("装潢营业额比率");
    ChartModel.XAxis.Add("保险营业额比率");
    ChartModel.XAxis.Add("贷款服务费比率");
    ChartModel.XAxis.Add("二手车毛利占比");
    ChartModel.XAxis.Add("延保销售额占比");
    
    foreach(var report in Model.Reports){
        S4Store.Models.Chart.ChartSeries series = new S4Store.Models.Chart.ChartSeries();
        series.Precision = 2;
        series.Name = report.CarBrand.Name;
        series.Data.Add(report.FWXSLGXD);
        series.Data.Add(report.ZHZB);
        series.Data.Add(report.BXZB);
        series.Data.Add(report.DKZB);
        series.Data.Add(report.ESCMLZB);
        series.Data.Add(report.YBZB);
        ChartModel.Serieses.Add(series);
    }
}
<div style="height:100%; overflow:auto">
@Html.Action("ReportBar", "Common", Model.BarModel)
<div style="position:relative; width:100%">
      
        @Html.Partial("../Chart/Column", ChartModel)
    
</div>
</div>


